<template>
  <div
    class="hdty-box flex-center column"
    :style="{
      width: width,
      height: height,
      padding: padding
    }"
  >
    <div class="hdty-box-header">
      <slot name="title"></slot>
    </div>
    <div class="hdty-box-body">
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
const props = withDefaults(
  defineProps<{
    width?: string
    height?: string
    padding?: string
  }>(),
  {
    width: '100%',
    height: '100%',
    padding: '16px 8px'
  }
)
</script>

<style lang="scss" scoped>
.hdty-box {
  transition: all 0.3s;
  border-radius: 8px;
  background: rgba(3, 31, 76, 0.9);
  box-sizing: border-box;
  box-shadow: inset 0 0 28px #5182d1;
  width: 100%;
  height: 100%;
  color: #fff;
  .hdty-box-header {
    width: 100%;
  }
  .hdty-box-body {
    flex: 1;
    width: 100%;
    flex-basis: 0;
    overflow: hidden;
  }
}
</style>
